package com.douma.tool.db;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by haoxijun on 2019/12/9.
 */
@Getter
@Setter
public class DbFieldDto {

    //姓名
    private String     name;
    //种类
    private DbTypeEnum type;
    //非空
    private String     notNull;
    //备注
    private String     comment;
    //是否唯一约束
    private boolean    idx = false;

    public DbFieldDto(String name, DbTypeEnum type, String notNull, String comment) {
        this.name = name;
        this.type = type;
        this.notNull = notNull;
        this.comment = comment;
    }

}
